﻿<phone:PhoneApplicationPage 
    x:Class="Coevery.PhoneApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" BackKeyPress="PhoneApplicationPage_BackKeyPress">

    <Grid x:Name="LayoutRoot" Background="#6699ff">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="300"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <StackPanel x:Name="TitlePanel" Grid.Column="0" Margin="28 0 0 0" >
                <TextBlock Text="Coevery" Margin="10 100 0 0" Style="{StaticResource PhoneTextTitle1Style}" VerticalAlignment="Top">
                </TextBlock>
            </StackPanel>
        </Grid>

        <Grid x:Name="ContentPanel" Grid.Row="1">
            <StackPanel Margin="28 0 0 0">
                <StackPanel>
                    <TextBlock Margin="10 0 0 0" Text="Username"></TextBlock>
                </StackPanel>
                <StackPanel>
                    <TextBox x:Name="textUsername" Text="NovaUser">
                    </TextBox>
                </StackPanel>
                <StackPanel>
                    <TextBlock  Margin="10 0 0 0" Text="Password" ></TextBlock>
                </StackPanel>
                <StackPanel>
                    <PasswordBox x:Name="textPasswordBox" Password="Nova123"></PasswordBox>
                </StackPanel>
                <CheckBox x:Name="chbRememberMe" Content="Remember me" ClickMode="Release" IsChecked="True"></CheckBox>
            </StackPanel>
        </Grid>
    </Grid>
 
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="#0066cc">
            <shell:ApplicationBarIconButton x:Name="btnLogin"  IconUri="/Images/appbar.check.rest.png" Text="login" Click="Login_Click"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="About Us" Click="ApplicationBarMenuItem_Click"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
   

</phone:PhoneApplicationPage>